﻿@model MyPSDALayer.Tech

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>教程</legend>
        @Html.HiddenFor(model => model.TechID)
        <div class="editor-label">
            @Html.LabelFor(model => model.TechName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TechName)
            @Html.ValidationMessageFor(model => model.TechName)
        </div>
        <div class="editor-field">
            @Html.HiddenFor(model => model.ReadCount)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.TypeName)
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.TypeName, ViewBag.TypeList as SelectList)
            @Html.ValidationMessageFor(model => model.TypeName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Descr)
        </div>
        <div class="editor-field">
          @Html.UEditorFor(o=>o.Descr)
            @Html.ValidationMessageFor(model => model.Descr)
        </div>
        <div class="editor-field">
            @Html.HiddenFor(model => model.CoverUrl)
        </div>
        <div class="editor-field">
            @Html.HiddenFor(model => model.CreateBy)
        </div>
        <div class="editor-field">
            @Html.HiddenFor(model => model.CreateDate)
        </div>
        <div class="editor-field">
            @Html.HiddenFor(model => model.ModifyBy)
        </div>
        <div class="editor-field">
            @Html.HiddenFor(model => model.ModifyDate)
        </div>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("Back to List", "Index")
</div>
